package com.yonyou.pmclouds.basecom.util;

import org.apache.commons.lang3.StringUtils;

public class ChangeFlagCheckUtil {
    private ChangeFlagCheckUtil() {
    }

    public static final boolean isSameFlag(Object vo, Object orig) {
        if (vo == null || orig == null) {
            return false;
        }
        String newFlag = (String) BeanHelper.getProperty(vo, CommonFieldConst.CHANGE_FLAG);
        String oldFlag = (String) BeanHelper.getProperty(orig, CommonFieldConst.CHANGE_FLAG);
        return StringUtils.equals(newFlag, oldFlag);
    }
}
